<template>
   <div class="search">
        <div class="search-input">
          <icon type="search" class="serach-icon" size="32rpx"/>搜索
        </div>
     </div>
</template>

<style lang="scss" scoped>
/* 搜索框样式 */
.search {
  background-color: #ff2d4a;
  position: fixed;
  width: 100%;
}
.search-input {
  height: 60rpx;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 24rpx;
  margin: 20rpx 16rpx ;
}
.serach-icon {
  margin-right: 5px;
}
</style>

